//
//  HOMediaViewController.h
//  WeiDu
//
//  Created by foguo-mac-1 on 13/12/2017.
//  Copyright © 2017 WeiDu. All rights reserved.
//

#import "HOBaseViewController.h"
#import "HOTakePhotoMgr.h"
#import "HORecordView.h"
#import "HORecordActiveView.h"
#import "HOUploadImageView.h"
#import "HOEditView.h"

@interface HOMediaViewController:HOBaseViewController <HOEditViewDelegate, HOUploadImageViewDelegate, HOTakePhotoMgrDelegate, HORecordActiveViewDelegate,HORecordViewDownloadDelegate>
{
	
}


@property(nonatomic, assign)BOOL 			isRecordModal;
@property(nonatomic, assign)BOOL 			isNeedRerepair;
@property(nonatomic, assign)double 			totalTime;
@property(nonatomic, retain)NSString 		*voiceFileURL;
@property(nonatomic, retain)NSString 		*voiceFileName;
@property(nonatomic, retain)HOTakePhotoMgr 	*takePhotoMgr;
@property(nonatomic, assign)HORecordView 	*recordView;
@property(nonatomic, retain)HORecordActiveView 	*recordActiveView;
@property(nonatomic, assign)BOOL 				isConverted;
@property(nonatomic, retain)NSTimer 			*auditionTimer;

@property(nonatomic, assign)CGFloat 		singleImgWidth;
@property(nonatomic, retain)NSData 			*convertedVoiceData;
@property(nonatomic, retain)HOUploadImageView *uploadImgView;

- (void)initMediaView;
- (void)initMediaViewNoRecord;
- (void)initMediaViewOnlyImageDiaplay;

- (UITableViewCell *)tableView:(UITableView *)tableView cellForQuickTakePhotoRowAtIndexPath:(NSIndexPath *)indexPath;
- (CGFloat)getPhotoAndRecordViewHeight;
- (CGFloat)getPhotoViewHeight;

- (CGFloat)getDescEditViewHeight;
- (NSDictionary *)getMediaDic;
- (NSString *)getSelectedImages;
- (BOOL)convertingVoice;
- (void)downloadVoice;
- (BOOL)isEnableCheckButton;

- (void)takePhoto:(id)sender;
- (void)didPickImages:(NSArray *)images;

- (void)submit;
- (void)cleanupAudio;
@end
